def run(params:list[str]):
    from ApiTools import apiTools,apiBase
    try:
        jsn_grp='''{
	"add_edges":[{"from":"__start__","to":"echoA"},
		{"from":"echoA","to":"echoB"},
		{"from":"echoA","to":"echoC"},
		{"from":["echoB","echoC"],"to":"echoD"},
		{"from":"echoE","to":"__end__"}
		],
	"add_conditional_edges":[
	{  "from":"echoD",
	   "should_continue": "should_continue.py",
	   "next":{
			"continue": "echoE",
			"end": "__end__"
		}
    }
  ]
} '''
        collects=apiBase.argv_array(params,1,'database/tools;',';')
        grp = apiTools.load_tol()
        vcts=apiTools.load_models().get_vects(collects,None)
        jsn=apiBase.argv_json(params,2,jsn_grp)
        # 提示词
        param=apiBase.argv_json(params,2,{"aggregate": [], "curNodeName": "bc"})
        graph=grp.load_langgraph_json(vcts,jsn)
        res=graph.invoke(param)
        return res
    except Exception as e:
        return f"function error:{e}"